package com.java.zhuiyun.api.good_course.controller;

import com.java.zhuiyun.api.recommendedCourse.service.RecommendedCourseService;
import com.java.zhuiyun.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName GoodCourseController
 * @Description TODO PC精选好课
 * @Author WX
 * @Date 2023/8/21 16:04
 **/
@RestController
@RequestMapping("/goodCourse")
@CrossOrigin
public class GoodCourseController {
    @Autowired
    private RecommendedCourseService recommendedCourseService;

    /*
    * @Author WX
    * @Description PC精选好课
    * @Date 2023/8/21 16:07
    * @Return
    * @param null
    */
    @RequestMapping("/randonGoodFour")
    public CommonResult randonGoodFour() {
        return CommonResult.ok(recommendedCourseService.randonGoodFour());
    }
}
